package com.cxhc.system.domain.app;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cxhc.common.annotation.Excel;

/**
 * 【请填写功能名称】对象 cm_viewer
 * 
 * @author Dhq
 * @String 2024-09-24
 */
public class CmViewer
{

    /** $column.columnComment */
    private Long id;

    /** 查看的人 */
    @Excel(name = "查看的人")
    private Long userId;

    /** 查看时间 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "查看时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private String lastViewTime;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 目标ID */
    @Excel(name = "目标ID")
    private String targetId;

    /** 查看次数 */
    @Excel(name = "查看次数")
    private Long viewTotal;

    /** 企业名 */
    @Excel(name = "企业名")
    private String entName;

    /** 姓名 */
    @Excel(name = "姓名")
    private String asName;

    /** 照片 */
    @Excel(name = "照片")
    private String userPhoto;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setLastViewTime(String lastViewTime) 
    {
        this.lastViewTime = lastViewTime;
    }

    public String getLastViewTime() 
    {
        return lastViewTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTargetId(String targetId) 
    {
        this.targetId = targetId;
    }

    public String getTargetId() 
    {
        return targetId;
    }
    public void setViewTotal(Long viewTotal) 
    {
        this.viewTotal = viewTotal;
    }

    public Long getViewTotal() 
    {
        return viewTotal;
    }
    public void setEntName(String entName) 
    {
        this.entName = entName;
    }

    public String getEntName() 
    {
        return entName;
    }
    public void setAsName(String asName) 
    {
        this.asName = asName;
    }

    public String getAsName() 
    {
        return asName;
    }
    public void setUserPhoto(String userPhoto) 
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto() 
    {
        return userPhoto;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("lastViewTime", getLastViewTime())
            .append("type", getType())
            .append("targetId", getTargetId())
            .append("viewTotal", getViewTotal())
            .append("entName", getEntName())
            .append("asName", getAsName())
            .append("userPhoto", getUserPhoto())
            .toString();
    }
}
